<link type="text/css" rel="stylesheet" href="<?php echo $this->basePath('public/css/dbblack/css/ucenter.css'); ?>" />

<div class="bg-base">
    <ol class="bread-crumb container">
        <li><a href="<a href="<?php echo $this->url('shopfront/default'); ?>"><?php echo $this->translate('首页'); ?></a></li>
        <?php if($this->class_menu) { foreach($this->class_menu as $menu_val) {
            if($menu_val['article_class_id'] != $this->article_class_info->article_class_id) {
                ?>
                <li><a href="<?php echo $this->url('frontarticle/default/cms_class_id', array('action'=>'index', 'cms_class_id'=>$menu_val['article_class_id'])); ?>"><?php echo $this->escapeHtml($menu_val['article_class_name']); ?></a></li>
            <?php } } } ?>

        <li><a href="<?php echo $this->url('frontarticle/default/cms_class_id', array('action'=>'index', 'cms_class_id'=>$this->article_class_info->article_class_id)); ?>"><?php echo $this->escapeHtml($this->article_class_info->article_class_name); ?></a></li>
    </ol>
</div>
<div class="container">
    <div class="mt10 clearfix" style="position: relative;">
        <div class="sidebar fl" style="width:240px;">
            <h2 class="header"><?php echo $this->translate('顶级分类'); ?></h2>
            <div class="box mt20">
                <ul class="menu-list">
                    <?php if($this->t_class) foreach ($this->t_class as $t_class_val) { ?>
                    <li><a <?php if($t_class_val['article_class_id'] == $this->article_class_info->article_class_id) echo 'class="current"'; ?> href="<?php echo $this->url('frontarticle/default/cms_class_id', array('action'=>'index', 'cms_class_id'=>$t_class_val['article_class_id'])); ?>"><?php echo $this->escapeHtml($t_class_val['article_class_name']); ?><span class="l-triangle"></span></a></li>
                    <?php } ?>
                </ul>
            </div>
            <?php  if ($this->sub_class) { ?>
            <h2 class="header" style="margin-top: 30px;"><?php echo $this->translate('下级分类'); ?></h2>
            <div class="box mt20">
                <ul class="menu-list">
                    <?php foreach($this->sub_class as $sub_class_val) { ?>
                        <li><a href="<?php echo $this->url('frontarticle/default/cms_class_id', array('action'=>'index', 'cms_class_id'=>$sub_class_val['article_class_id'])); ?>"><?php echo $this->escapeHtml($sub_class_val['article_class_name']); ?></a><span class="l-triangle"></span></li>
                    <?php } ?>
                </ul>
            </div>
            <?php } ?>
        </div>
        <div class="content" style="margin-left: 262px;">
            <?php if ($this->c_class) { ?>
            <div class="article-class-menu">
                <ul class="tab-head">
                    <?php foreach ($this->c_class as $c_value) { ?>
                    <li <?php if ($c_value['article_class_id'] == $this->article_class_info->article_class_id) echo 'class="current"'; ?>><a href="<?php echo $this->url('frontarticle/default/cms_class_id',array('action'=>'index','cms_class_id'=>$c_value['article_class_id'])); ?>"><?php echo $this->escapeHtml($c_value['article_class_name']); ?></a></li>
                    <?php } ?>
                </ul>
            </div>
            <?php } ?>
            <div class="help-content p20" style="min-height:200px;">
                <?php if ($this->article_list->getTotalItemCount() > 0) { ?>
                <ul class="list">
                    <?php foreach($this->article_list as $article_value) { ?>
                    <li><span class="fr"><?php echo date("Y-m-d H:i", $article_value['article_add_time']); ?></span><a href="<?php echo $this->url('frontarticle/default/cms_id',array('action'=>'content','cms_id'=>$article_value['article_id'])); ?>"><?php echo $this->escapeHtml($article_value['article_title']); ?></a></li>
                    <?php } ?>
                </ul>
                <div class="page-nav"><?php echo ( count($this->article_list) > 0 ) ? $this->paginationControl($this->article_list, 'Sliding', 'site/dbpage',array('page_url'=>$this->url('frontarticle/default/cms_class_id',array('action'=>'index', 'cms_class_id'=>$this->article_class_info->article_class_id)))) : ""; ?></div>
                <?php } else { ?>
                    <p><?php echo $this->translate('暂无文章！'); ?></p>
                <?php } ?>
            </div>
        </div>
    </div>
</div>
